package com.vhall.component.controller.sign;


import com.vhall.component.controller.sign.facade.SignFacade;
import com.vhall.component.entity.sign.vo.*;
import com.vhall.component.framework.common.annotation.VhallComponent;
import com.vhall.component.plugin.common.annotation.VssTokenAuth;
import com.vhall.component.service.sign.service.SignService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author shenqing
 * @date 2021/4/22 19:40
 */
@VhallComponent
@VssTokenAuth
public class SignController implements SignFacade {

    @Autowired
    private SignService signService;


    /**
     * 发起签到
     *
     * @param reqVO
     * @return
     */
    @Override
    public SignDTO add(SignAddToVpsReqVO reqVO) {
        return signService.add(reqVO);
    }

    /**
     * 用户签到
     *
     * @param reqVO
     * @return
     */
    @Override
    public SignRecordDTO in(SignInToVpsReqVO reqVO) {
        return signService.in(reqVO);
    }

    /**
     * 获取签到记录列表
     *
     * @param reqVO
     * @return
     */
    @Override
    public SignRecordGetsRspVO recordsGet(SignRecordsToVpsReqVO reqVO) {
        return signService.recordsGet(reqVO);
    }

    /**
     * 获取发送的签到列表
     *
     * @param reqVO
     * @return
     */
    @Override
    public SignGetsRspVO gets(SignGetToVpsReqVO reqVO) {
        return signService.gets(reqVO);
    }
}
